package com.shd.edanpei.enums;

/**
 * Created by mc on 2018/9/23.
 * yang-wen-wen
 */

public enum PicEnum {

    idCardPic(1, "身份证"),
    householdRegister(2, "户口本"),
    //    bankPic(3, "银行卡"),
    roomCert(4, "房产证/不动产证"),
    businessCert(5, "公司营业执照"),
    //    companyStream(6, "公司流水"),
    otherHouseCert(7, "其他房产证"),
    carCert(8, "车辆登记证/行驶证"),
    carWarranty(9, "车辆保单"),
    maritalCert(10, "结婚证/离婚证"),
    creditCert(11, "征信"),
    supplement(12, "信息补充"),
    newCreditCert(13, "征信"),
    newBusinessCert(14, "公司营业执照"),
    newWarranty(15, "保单");

    private int id;
    private String type;

    PicEnum(int id, String type) {
        this.id = id;
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public String getType() {
        return type;
    }

    public static String getType(int id) {
        PicEnum[] values = values();
        for (PicEnum value : values) {
            if (value.getId() == id) {
                return value.getType();
            }
        }
        return "";
    }


}


